from django import template

#名字必须是 register
register = template.Library()

@register.filter
def tagA(value):
    return value * 3